#ifdef __IAR_SYSTEMS_ICC

extern unsigned char ASUAB0RXPTR, ASUAB0RXCNT, ASUAB0TXPTR, ASUAB0TXCNT;
extern unsigned char ASUAB0RXBUF[], ASUAB0TXBUF[];

extern void *ASUAB0RXBSIZE, *ASUAB0TXBSIZE;

#define ASUAB0RXBufSize ((unsigned short) &ASUAB0RXBSIZE)
#define ASUAB0TXBufSize ((unsigned short) &ASUAB0TXBSIZE)

extern void ASUAB0Init(unsigned short UBR, unsigned char UMCTL, unsigned short options);
extern void ASUAB0Xmit(void);
extern int  ASUAB0XmitChr(unsigned char ch);
extern int  ASUAB0RecvChr(void);
extern int  ASUAB0XmitBlk(unsigned char *buf, unsigned short sz);
extern int  ASUAB0RecvBlk(unsigned char *buf, unsigned short sz);

extern unsigned char ASUAB1RXPTR, ASUAB1RXCNT, ASUAB1TXPTR, ASUAB1TXCNT;
extern unsigned char ASUAB1RXBUF[], ASUAB1TXBUF[];
extern void *ASUAB1RXBSIZE, *ASUAB1TXBSIZE;

#define ASUAB1RXBufSize ((unsigned short) &ASUAB1RXBSIZE)
#define ASUAB1TXBufSize ((unsigned short) &ASUAB1TXBSIZE)

extern void ASUAB1Init(unsigned short UBR, unsigned char UMCTL, unsigned short options);
extern void ASUAB1Xmit(void);
extern int  ASUAB1XmitChr(unsigned char ch);
extern int  ASUAB1RecvChr(void);
extern int  ASUAB1XmitBlk(unsigned char *buf, unsigned short sz);
extern int  ASUAB1RecvBlk(unsigned char *buf, unsigned short sz);


#else
            EXTERN  ASUAB0RXPTR, ASUAB0RXCNT, ASUAB0TXPTR, ASUAB0TXCNT
            EXTERN  ASUAB0RXBUF, ASUAB0TXBUF
            EXTERN  ASUAB0RXBSIZE, ASUAB0TXBSIZE
            
            EXTERN  ASUAB0Init, ASUAB0RXINT, ASUAB0TXINT
            EXTERN  ASUAB0Xmit, ASUAB0Xmit_NBP, ASUAB0XmitChr, ASUAB0RecvChr
            EXTERN  ASUAB0XmitBlk, ASUAB0RecvBlk
            
            EXTERN  ASUAB1RXPTR, ASUAB1RXCNT, ASUAB1TXPTR, ASUAB1TXCNT
            EXTERN  ASUAB1RXBUF, ASUAB1TXBUF
            EXTERN  ASUAB1RXBSIZE, ASUAB1TXBSIZE
            
            EXTERN  ASUAB1Init, ASUAB1RXINT, ASUAB1TXINT
            EXTERN  ASUAB1Xmit, ASUAB1Xmit_NBP, ASUAB1XmitChr, ASUAB1RecvChr
            EXTERN  ASUAB1XmitBlk, ASUAB1RecvBlk
#endif
            
